package site.lanmushan.framework.authorization.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import site.lanmushan.framework.authorization.strategy.ContextStorageStrategy;
import site.lanmushan.framework.authorization.strategy.impl.LocalContextStorageStrategy;

/**
 * @author Administrator
 */
@Configuration
public class ContextStorageStrategyConfig {

    @Bean
    @ConditionalOnMissingBean
    public ContextStorageStrategy createLocalContextStorageStrategy(){
        return new LocalContextStorageStrategy();
    }
}
